package com.jintu.portal.pojo.entity.mongo;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Map;

/**
 * @author very
 */
@Data
@Document(collection ="TB_SCORE_CARD")
public class ScoreDto implements Serializable {

    @Id
    private String id;

    @Field("orderId")
    private String orderId;

    @Field("userId")
    private Integer userId;

    @Field("timestamp")
    private Long timestamp;

    @Field("scoreMapDetail")
    private JSONObject scoreMapDetail;

    @Field("scoreMap")
    private Map<String,Object> scoreMap;

}
